# 冒泡排序
def bubbings(args):
    for k in range(1,len(args)):
        for i in range(len(args) - k):
            if args[i] > args[i + 1]:
                temp = args[i + 1]
                args[i + 1] = args[i]
                args[i] = temp


list_data = [9,6,10,25,3,15,2,66,8]
print(len(list_data))
bubbings(list_data)
print(list_data)